package com.rd.student.dashuju.zhengruixian;

public class Thread1 extends Thread{
    public Thread1(String name) {
    super(name);
}

    @Override
    public void run() {

    }

    public static void main(String[] args) throws Exception {
        for (int i = 0; i < 50; i++) {
            Thread1 A = new Thread1("A");
            Thread1 B = new Thread1("B");
            Thread1 C = new Thread1("C");
            A.start();
            A.join();
            System.out.println("A");
            B.start();
            B.join();
            System.out.println("B");
            C.start();
            C.join();
            System.out.println("C");
        }
    }
}
